#ifndef DEVICE_H
#define DEVICE_H

#include <QtCore/QtCore>
#include <QtGui/QtGui>

class device_info;

//! Electrical device profile
struct TDevice
{
	//! Name of the device
	QString Name;
	//! Power consumption (passport value)
	float Power;
	//! Accuracy of power measurements
	float Accuracy;
	//! Icon
	QImage Icon;
	//! Rectangle
	QRect Bounds;
	//! Device info window
	QPointer<device_info> m_wnd;

	bool m_is_connected;

	TDevice(QString iName);
};

bool DeviceCompareFunc(TDevice &Dev1,TDevice &Dev2);

#endif
